export default function (http) {
  return {
    async decode(query = {}) {
      const res = await http.get('/map/decode', { params: query, ignoreError: true })
      return res
    },
    async jsApiProxy() {
      const res = await http.get('/map/js-api-proxy', { ignoreError: true })
      return res
    },
  }
}
